package com.foreveross.taskservice.application.pages;

import org.dayatang.querychannel.Page;

import com.foreveross.taskservice.application.IBaseJpaApplication;
import com.foreveross.taskservice.application.pages.vos.BaseQueryVO;
import com.foreveross.taskservice.application.task.statsdetail.vo.BaseTaskVO;
import com.foreveross.taskservice.application.task.statsdetail.vo.BaseVO;
/**
 * 页面任务缓存查询接口
 * @author guokenye
 *
 */
public interface IPageTaskCacheQueryApplication extends IBaseJpaApplication{
	/**
	 * 根据条件vo进行查询
	 * @param query
	 * @return
	 * @throws Exception
	 */
	public Page<BaseTaskVO> query(BaseQueryVO query)throws Exception;
	
	/**
	 * 对已知的结果集进行查询
	 * @param resultId
	 * @param offset
	 * @param count
	 * @return
	 * @throws Exception
	 */
	public Page<BaseTaskVO> query(String resultId,int offset,int count)throws Exception;
	
	/**
	 * 根据taskId查询任务
	 * @param taskId
	 * @return
	 * @throws Exception
	 */
	public BaseTaskVO query(String taskId)throws Exception;
	
	
}